/********************************************************************
filename : wolf_RTC.h
discript : RTC use as calendar driver.
version  : V0.0
editor   : Icy - dreamwolf
time     : 2014.6.19
statement: This file is modified by dreamwolf under LGPL,you could use 
           it free.We cann't ensure there is no error in this file,and
				   if you detect an error please contact us freely,it is so a-
					 ppreciate for your help to improve our code that could help 
					 more people to use it safty.
contact  : edreamtek@163.com
           www.edreamtek.com
********************************************************************/

#ifndef __WOLF_RTC_H__
#define __WOLF_RTC_H__

#include "stm32f0xx.h"
#include "wolf_typedefine.h"
#include "wolf_usart.h"

#define RTC_CLOCK_SOURCE_LSE

extern RTC_TimeTypeDef RTC_TimeStructure;
extern RTC_InitTypeDef RTC_InitStructure;
extern RTC_AlarmTypeDef  RTC_AlarmStructure;
extern uint32_t AsynchPrediv, SynchPrediv;


void RTC_Config(void);

void RTC_interrupt_config(void);

void RTC_TimeRegulate(void);

void RTC_TimeShow(void);

void RTC_AlarmShow(void);

void wolf_RTC_init(void);



#endif

